<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class configServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
        view()->composer('admin.*', function($menu) {
            $menu->with('menu', [
                '论坛设置' => ['webconfig'=>'论坛设置'],
                '版块管理' => ['clubs.list'=>'版块列表','clubs.create'=>'添加版块',],
                '会员管理' => ['usermanage.list'=>'会员列表'],
                '帖子管理' => ['articlemanage.list'=>'帖子列表'],
            ]);
        });
        view()->composer('admin.*', function($club_types) {
            $club_types->with('club_types', [
                'article'=>'文字类型',
                'images'=>'图片类型',
            ]);
        });
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
